package com.ylsk.quartz.task;

import org.springframework.stereotype.Component;


/**
 * 定时发送任消息 任务
 */
@Component("sendMsgTask")
public class SendMsgTask {

    public void sendMsg(){
        for (int i = 0; i < 100; i++) {

            System.out.println("发送消息" + i +",发送时间：" + System.currentTimeMillis());
        }
    }
}
